package com.gxsf.wechatbook.util;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @author BeijiRonin
 * @version 1.0.0
 * @date 2021/1/18 18:19
 */
@Data
@AllArgsConstructor
public class Error {
    public int code;
    public String msg;

    public static Error error(int code, String msg) {
        return new Error(code, msg);
    }
}
